package common.dal;

/**
 * A type of SQL column
 * 
 * @author Gal Lalouche
 */
public enum SQLDataType {
	/**
	 * An integer type (4 bytes)
	 */
	INTEGER,
	/**
	 * A varchar type of size 50
	 */
	VARCHAR_50,
	/**
	 * A long type (8 bytes)
	 */
	BIGINT,
	/**
	 * A variable text type (64k)
	 */
	TEXT,
	/**
	 * A double precision type
	 */
	DOUBLE,
	/**
	 * A small variable text type (256B)
	 */
	TINYTEXT,
	/**
	 * A small binary type (256B)
	 */
	TINYBLOB,
	/**
	 * A boolean type
	 */
	BOOLEAN;

	@Override
	public String toString() {
		switch (this) {
		case VARCHAR_50:
			return "VARCHAR(50)";
		default:
			return super.toString();
		}
	}
}